package com.opp.demo11;

public class Test {
    public static void main(String[] args) {
        new Apple().eat();

        new UserService(){
            @Override
            public void hello() {

            }
        };
    }
}
class Apple{
    public void eat(){
        System.out.println("1");
    }
}

interface  UserService{
    void hello();
}